/*package com.qhgrain.demo.authz;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.realm.jdbc.JdbcRealm;

public class UserRealm extends JdbcRealm{
	
	@Override
	protected AuthenticationInfo doGetAuthenticationInfo(
			AuthenticationToken token) throws AuthenticationException {		
        SimpleAuthenticationInfo saInfo = new SimpleAuthenticationInfo(token.getPrincipal(),token.getCredentials(),getName());		
		return saInfo;
	}
}
*/